# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=ps_mem
pkgver=3.14
pkgrel=0
pkgdesc="A utility to report core memory usage per program"
url="https://github.com/pixelb/ps_mem"
arch="noarch"
license="LGPL-2.1-or-later"
depends="python3"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/pixelb/ps_mem/archive/v$pkgver.tar.gz
	python3.patch"

package() {
	install -Dm644 ps_mem.1  "$pkgdir"/usr/share/man/man1/$pkgname.1
	install -Dm755 ps_mem.py "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
53d9e87e6a35f48b013c7280a954fb95373668e30f41fe3e5a9d2af9b7fb9060f113a80ac5ee3af6e23370058ff3afc8b2c88c99e1666d8422e3c73dc848ee81  ps_mem-3.14.tar.gz
6ff81ae897c0b9049f7d7af59d120e95ef0db508a578c29603f32681f5f87dac17952124aefe1a0d8ffe6f128235ed619e87becd42e2a84e1e06d51def40f957  python3.patch
"
